var express = require('express');
var path = require('path');
var createError = require('http-errors');

var app = express();


app.get("/abc", function (req, res) {
  // throw new Error("BROKEN");
  res.send('hi');

  // next(new Error('abc'));

});


app.get('*', function(req, res){
    res.send('404');
});



app.use(function (err, req, res, next) {
  res.status(500).send('Something broke!')
})


app.listen(8080, function () {
	console.log( 'server running...' );
})